#!/usr/bin/env bash

# 先安装 ansible
> apt install ansible

# 启动3个Docker
docker pull centos:7



# 先建MGR 主从
docker run -p 3307:3306 \
-v  `pwd`/schema.xml:/opt/mycat/conf/schema.xml \
-v  `pwd`/server.xml:/opt/mycat/conf/server.xml \
-d iamnewsea/mycat:1.6.7.5